package cloud.admin.gateway.service;

import java.util.List;

import cloud.admin.gateway.dto.GatewayRouteDefinition;
import cloud.admin.gateway.entity.GatewayRoutes;

public interface IRoutesService {

	int add(GatewayRoutes gatewayRoute);
	
	int update(GatewayRoutes gatewayRoute);
	
	int delete(Long id ,boolean isDel);
	
	int enableById(Long id ,boolean isEbl);
	
	GatewayRoutes getRouteById(Long id);
	
    /**
     * 查询路由信息
     * @return
     */
    List<GatewayRoutes> getRoutes(GatewayRoutes route);

    /**
     * 返回组装后网关需要的路由信息
     * @return
     */
    List<GatewayRouteDefinition> getRouteDefinitions();

	
}
